WordPress Quick Guide: Add a Custom PHP Function by Elias Ericson
Author:Elias Ericson [Ericson, Elias]
Language: eng
Format: azw3
Publisher: UNKNOWN
Published: 2017-06-20T04:00:00+00:00
Enter the WordPress project you just installed.
Locate the file “functions.php”. It is within the folder wp-content->themes->twentyseventeen.
Open and edit “functions.php”.
This is a file that contains many functions for the theme. You can add your own functions here at the end of the file.
We are going to add this function to the file. The function is called “save_form”. It inserts data entries into our database by taking the values from the “contact form 7” fields we have and inserting them into a mysql-table. Our fields on the website are “your-name” and “your-email” these fields are stored into the mysql-table “email_list” which has the fields “title”, “name”, “email”, “date”. The extra field “title” will store the name of the contact form. In our case “Register”. The “date” field stores the specific date that it was stored. Keep in mind, we have not yet created our mysql-table.
Download
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.
Hello! Python by Anthony Briggs(9929)
The Mikado Method by Ola Ellnestam Daniel Brolund(9794)
Dependency Injection in .NET by Mark Seemann(9351)
Sass and Compass in Action by Wynn Netherland Nathan Weizenbaum Chris Eppstein Brandon Mathis(7796)
The Well-Grounded Java Developer by Benjamin J. Evans Martijn Verburg(7571)
Svelte with Test-Driven Development by Daniel Irvine(7319)
Test-Driven Development with PHP 8 by Rainier Sarabia(7057)
Layered Design for Ruby on Rails Applications by Dementyev Vladimir;(6913)
Secrets of the JavaScript Ninja by John Resig & Bear Bibeault(6542)
Secrets of the JavaScript Ninja by John Resig Bear Bibeault(6429)
Web Development with Django by Ben Shaw Saurabh Badhwar(6376)
React Application Architecture for Production by Alan Alickovic(6096)
Jquery UI in Action : Master the concepts Of Jquery UI: A Step By Step Approach by ANMOL GOYAL(5817)
Kotlin in Action by Dmitry Jemerov(5077)
Audition by Ryu Murakami(4595)
Software Architecture for Web Developers by Mihaela Roxana Ghidersa(4535)
Accelerating Server-Side Development with Fastify by Manuel Spigolon Maksim Sinik & Matteo Collina(4387)
Hands-On Full-Stack Web Development with GraphQL and React by Sebastian Grebe(4325)
Solidity Programming Essentials by Ritesh Modi(4092)
